package com.neuedu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author: MARK
 * @Date: 2019/7/29 19:32
 * @version: 1.0.0
 * @Description:
 */
@Data
public class User {
    private Integer id;
    @NotNull(message = "{user.username.null}")
    private String username;
    private Integer password;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    private Date birth;
}
